package cc.deng.wubo.minapp.beans.game;

import cc.deng.wubo.minapp.core.base.BaseModel;
import org.nutz.dao.DB;
import org.nutz.dao.entity.annotation.*;

@Table("gm_idiom")
public class GmIdiom extends BaseModel {

    @Id
    //@JsonField(forceString = true)
    @Prev({
            @SQL(db= DB.MYSQL,value = "SELECT IFNULL(MAX(id),0)+1 FROM gm_idiom"),
            @SQL(db= DB.ORACLE,value = "SELECT COALESCE(MAX(id),0)+1 FROM gm_idiom")
    })
    @Column
    private Long id;

    @Column
    @Comment("成语名")
    private String name;

    @Column
    @Comment("解释")
    private String explian;

    @Column
    @Comment("出处")
    private String provenance;

    @Column
    @Comment("图片ID")
    private Long fid;
    @Column
    @Comment("乱序汉字")
    private String shuffle;

    private String imgUri;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getExplian() {
        return explian;
    }

    public void setExplian(String explian) {
        this.explian = explian;
    }

    public String getProvenance() {
        return provenance;
    }

    public void setProvenance(String provenance) {
        this.provenance = provenance;
    }

    public Long getFid() {
        return fid;
    }

    public void setFid(Long fid) {
        this.fid = fid;
    }

    public String getShuffle() {
        return shuffle;
    }

    public void setShuffle(String shuffle) {
        this.shuffle = shuffle;
    }

    public String getImgUri() {
        return imgUri;
    }

    public void setImgUri(String imgUri) {
        this.imgUri = imgUri;
    }
}
